<template>
	<view class="shipped">
		<view v-for="(item,index) in props.item.storeDTOS" :key="index">
			<view class="topItem">
				<view class="left">
					<image :src="data.httpUrl+'/app/file/viewFile?fileId='+item.storeLogo" mode="aspectFill"></image>
					{{item.storeName}}
				</view>
				<view class="right">
					待发货
				</view>
			</view>
			<view>

			</view>
			<Item v-for="(item1,index1) in item.productDTOS" :key="index1" :item="item1" />
		</view>
		<view class="bot1">
			下单时间:{{item.createTime}}
			<view class="">
				实付款
				<text>￥{{props.item.totalPayAmount}}</text>
			</view>
		</view>
		<view class="bot" >
			<!-- <text>加入购物车</text> -->
			<!-- <text>申请退款</text> -->
		</view>
	</view>
</template>

<script setup lang="ts">
	//待发货
	import Item from './item'
	import { reactive } from 'vue';
	const props = defineProps(['item'])
	const data = reactive<any>({
		httpUrl: getApp().globalData.baseUrl,
	})
</script>

<style lang="scss">
	.shipped {
		>.bot1 {
			display: flex;
			align-items: center;
			justify-content: space-between;
			font-size: 24rpx;
			color: #8C8C8C;
			margin-top: 25rpx;

			view {
				font-size: 24rpx;

				text {
					font-size: 36rpx;
					color: #6B64D3;
				}
			}
		}

		>.bot {
			margin-top: 33rpx;
			display: flex;
			align-items: flex-end;
			justify-content: flex-end;

			text {
				padding: 11rpx 24rpx;
				border-radius: 100rpx;
			}

			// text:nth-of-type(1) {
			// 	border: 2rpx solid #D9D9D9;
			// 	margin-right: 16rpx;
			// }

			text:nth-of-type(1) {
				color: #6B64D3;
				border: 2rpx solid #6B64D3;
			}
		}

		.topItem {
			display: flex;
			align-items: center;
			justify-content: space-between;

			.left {
				display: flex;
				align-items: center;
				font-size: 32rpx;

				image {
					width: 48rpx;
					height: 48rpx;
					border-radius: 50%;
					margin-right: 16rpx;
				}
			}

			.right {
				color: #FF8C00;
			}
		}
	}
</style>